function __test_suprarelaxare1()
% Functie de test pentru suprarelaxare
	
	%Test nr 1.
	A = [ 1 -1; -1 1]

	b = [1; 0]

	x0 = [1 1]' 
	
	x = suprarelaxare1( A, b, x0, 0.5, 0.001, 1000);

	printf("Solutia este:\n");

	disp(x);
	A*x
	
	%Test nr. 2
	
	A = [ 1 0 2; -1 -2 0; 0 -1 -2]

	b = [1; -1; 0]

	x0 = [ 1 1 1]' 
	
	x = suprarelaxare1( A, b, x0, 0.5, 0.001, 1000);

	printf("Solutia este:\n");
	disp(x);
	A*x
	
	%Test nr. 3
	
	A = [ -2 0 2 0 -2; 0 2 0 -2 0; 2 0 -2 0 2; 0 -2 0 2 0; -2 0 2 0 -2]

	b = [1; -1; 0; 1; -1]

	x0 = [1 1 1 1 1]' 
	
	x = suprarelaxare1( A, b, x0, 0.5, 0.001, 1000);

	printf("Solutia este:\n");
	disp(x);
	A*x
	
endfunction
